<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div id="app">
        <!-- 声明式渲染 -->
        <p>{{msg}}</p>
        <p>{{msg}}</p>
        <p>年龄：{{age}}</p>
        <p>是否成年：{{age>=18?"已成年":"未成年"}}</p>
    </div>
</body>

</html>
<script src="./js/vue2.js"></script>
<script>

    let vm = new Vue({
        el:"#app",
        data:{
            msg:"hello",
            age:18
        }
    });


</script>